﻿
// <copyright file="Extensions.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The extensions.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Others.Data.Helpers
{
    using System.Data;
    
    using SubhadraSolutions.Sharp.Utils.Data.Helpers;

    /// <summary>
    /// The extensions.
    /// </summary>
    public static class Extensions
    {
        #region Public Methods and Operators

        /// <summary>
        /// The export to excel file.
        /// </summary>
        /// <param name="table">
        /// The table.
        /// </param>
        /// <param name="fileName">
        /// The file name.
        /// </param>
        public static void ExportToExcelFile(this DataTable table, string fileName)
        {
            ExcelHelper.WriteDataTable(table, fileName);
        }

        #endregion Public Methods and Operators
    }
}